#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""Admin configuration for Links module"""

from django.contrib import admin
from models import Blogroll, Link

class BlogrollAdmin(admin.ModelAdmin):
    "Admin configuration for model Blogroll"
    list_display = ('name', 'description', 'visible')
    prepopulated_fields = {'slug': ('name',) }

class LinkAdmin(admin.ModelAdmin):
    "Admin configuration for model Link"
    list_display = ('slug', 'name','url')
    prepopulated_fields = { 'slug': ('url', ) }

# Register
admin.site.register(Blogroll, BlogrollAdmin)
admin.site.register(Link, LinkAdmin)
